package com.chat.po;

import java.util.Date;

import javax.websocket.Session;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 说明：用户实体
 * 时间：2016年6月30日上午9:50:43
 * @author 杨建全
 * 
 * @modify 新增变量
 * @author milk.huchan
 * @modifyDate 2016/7/2
 */
public class User{
	
	private String id;				//id
	private String username;		//用户名
	private String password;		//密码
	private String icon;			//头像
	private String nickname;		//昵称
	private String introduction;	//个人简介
	private String email;			//邮箱
	private String address;			//地址
	private String qq;				//qq
	private String tel;				//tel
	private int state;	//{0, "离线"}{1, "在线"}{2, "忙碌"}
	private int isban;	//{-2, "正常"}{-1, "禁止"} 默认{-2, "正常"}
	private Date last_logindate;	//最近登录时间
	
	@JSONField(serialize=false)
	private Session socketSession;	//socket session
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Session getSocketSession() {
		return socketSession;
	}
	public void setSocketSession(Session socketSession) {
		this.socketSession = socketSession;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public Date getLast_logindate() {
		return last_logindate;
	}
	public void setLast_logindate(Date last_logindate) {
		this.last_logindate = last_logindate;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public int getIsban() {
		return isban;
	}
	public void setIsban(int isban) {
		this.isban = isban;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + "]";
	}
}
